#!/usr/bin/node

const fs=require('fs'),
      src=process.argv[2],
      log=console.log;


//显示文件的详细信息或者是显示属性
//17-my-stat.js

if(src==undefined){
  log('file is not found');
}

try{
  log(fs.statSync(src));

}catch(e){
  console.log(e.message);
}
